package com.gin.kotlin.no_gay_alliance.callback

import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response

/**
 * 空回调
 * @param T
 */
class EmptyCallback<T> : Callback<T> {
    /**
     * Invoked for a received HTTP response.
     *
     *
     * Note: An HTTP response may still indicate an application-level failure such as a 404 or 500.
     * Call [Response.isSuccessful] to determine if the response indicates success.
     */
    override fun onResponse(call: Call<T>, response: Response<T>) {
    }

    /**
     * Invoked when a network exception occurred talking to the server or when an unexpected exception
     * occurred creating the request or processing the response.
     */
    override fun onFailure(call: Call<T>, t: Throwable) {
    }
}